package com.roncoo.education.course;


import org
        .springframework.context.annotation.Bean;
import org
        .springframework.context.annotation.Configuration;


import org
        .springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author shilinghuai
 * @create 2022/3/14
 * @since 1.0.0
 */
@Configuration
public class MultipartResolverConfig {
    @Bean
    public CommonsMultipartResolver multipartResolver(){
        CommonsMultipartResolver resolver = new CommonsMultipartResolver();
        resolver.setDefaultEncoding("UTF-8");
        resolver.setMaxInMemorySize(Integer.MAX_VALUE);
        return resolver;
    }
}
